const wxLogin = () => {
  return new Promise((resolve, reject) => {
    wx.login({
      success(res) {
        if (res.code) {
          resolve(res.code);
        } else {
          reject();
        }
      },
      fail(error) {
        reject(error);
      }
    })
  });
};

const handleToLogin = () => {
  
}

module.exports = {
  wxLogin,
}